Skip to content

Ticket #4219: Can't bind events to a table row after it has been made selectable#159

Closed
Prinzhorn wants to merge 1 commit intojquery:masterfrom
Prinzhorn:master
Closed

Ticket #4219: Can't bind events to a table row after it has been made selectable#159
Prinzhorn wants to merge 1 commit intojquery:masterfrom
Prinzhorn:master

Conversation

@Prinzhorn
Copy link

Fixed http://bugs.jqueryui.com/ticket/4219
When the lasso (helper div) was added, it was positioned under the mouse. Since width and height are set to 0, you wouldn't expect any problems, but in fact the helper div prevented click events bound to the selectables from firing.
I moved the helper div to [-1,-1](outside the viewport). This should not affect anything else because the size and coordinates will be refreshed on mouse move, so it doesn't matter where the helper div is right after creation.

Fixed #4219 - Can't bind events to a table row after it has been made selectable
The lasso is now positioned outside the viewport (not under the mouse) when it's added, since it's size is 0 anyway.
@rdworth
Copy link
Contributor

rdworth commented Mar 19, 2011

It seems to me the correct fix is simply for the user to set the distance option to a value other than 0 (the default). With the default distance: 0 the user is communicating to the selectable widget that any mousedown should immediately capture and start selecting. If the user wants to allow a click or dblclick as well, setting the distance to 1 or 2 will allow those while requiring a mousedown+mousemove before the selecting starts.

thg2k pushed a commit to thg2k/jquery-ui that referenced this pull request Oct 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants